//
//  Newslist.m
//  CarFace
//
//  Created by dlios on 15/3/25.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "Newslist.h"

@implementation Newslist
 -
(void)dealloc
{
    [_idStr release];
    [_title release];
    [_mediatype release];
    [_type release];
    [_time release];
    [_indexdetail release];
    [_smallimg release];
    [_replycount release];
    [_pagecount release];
    [_jumppage release];
    [_lasttime release];
    [_newstype release];
    [_updatetime release];
    [_playcount release];
    [_nickname release];
    [_videoaddress release];
    [_shareaddress release];
    [_lastid release];
//    [_smallimg release];
    [super dealloc];
}


- (instancetype)initWithDictionary:(NSDictionary *)dic
{
    self = [super initWithDictionary:dic];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
        
    }
    return self;
}
-  (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        self.idStr = value;
    }
}
- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}

//- (NSString *)description
//{
//    return [NSString stringWithFormat:@"%@----%@ ---%@----%@", _title, _idStr, _time, _replycount];
//}

@end
